package com.cmc.cloud.cmclink.doc.vo.blnovo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 周贤
 * @date 2025/8/4
 */
@Schema(description = "管理后台 - 审核si 更改 是否需要弹出提示判断 入参")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@Valid
@NoArgsConstructor
@AllArgsConstructor
public class AssertNoticeVO {

    @Schema(description = "旧目的港编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{blno.oldDelCode.notblank}")
    @Length(max = 20, message = "{AssertNoticeVO.oldDelCode.length}")
    private String oldDelCode ;

    @Schema(description = "新目的港编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{blno.newDelCode.notblank}")
    @Length(max = 20, message = "{AssertNoticeVO.newDelCode.length}")
    private String newDelCode ;

    @Schema(description = "审核清单主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "{AssertNoticeVO.noticeId.NotNull}")
    private Long noticeId;
}
